package com.ipay.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class TradeRecord implements Serializable {
	private String id;
	/**
	 * 订单号
	 */
	private String recordNo;
	/**
	 * 订单创建时间
	 */
	private Date orderdate;
	/**
	 * 来源：1微信，2支付宝，3qq钱包
	 */
	private String resource;
	/**
	 * 商户id
	 */
	private String busId;
	/**
	 * 收款码编号
	 */
	private String codeNo;
	/**
	 * 类型（0 支付 1 退款）
	 */
	private String category;
	/**
	 * 支付状态：0未知，1已付款，2全额退款，3部分退款
	 */
	private String status;
	/**
	 * 退款类型：0部分，1全额
	 */
	private String refundtype;
	/**
	 * 金额
	 */
	private BigDecimal amount;
	/**
	 * 银行标识
	 */
	private String banksigns;
	/**
	 * 退款时对应的交易订单Id
	 */
	private String orderId;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 交易状态
	 */
	private String tradeState;
	/**
	 * 交易结果
	 */
	private Integer payResult;
	/**
	 * 平台订单
	 */
	private String transactionId;
	/**
	 * 支付完成时间
	 */
	private String timeEnd;
	/**
	 * 银行类型
	 */
	private String bankType;
	/**
	 * 超时时间
	 */
	private Date timeoutdate;
	/**
	 * 用户在商户唯一标识
	 */
	private String openid;
	/**
	 * 微信openid
	 */
	private String wxOpenid;
	/**
	 * 订单生成机器IP
	 */
	private String mchCreateIp;
	/** 平台退款单号 */
	private String refundId;
	/** 退款渠道(ORIGINAL—原路退款，默认) */
	private String refundChannel;
	// 退款时间
	private String refundTime;
	// 签约汇率
	private BigDecimal payRate;
	// 手续费
	private BigDecimal serviceCharge;
	// 结算金额
	private BigDecimal settlementAmount;
	private Integer userid;//用户ID(关联cashinrs表中的id)

	//展现使用
	/**
	 * 商户店铺名称
	 */
	private String shopname;
	/**
	 * 订单创建时间格式化处理
	 */
	private String dateFormat;

	/**
	 *支付订单微信openid【用户的】
	 * 定时器修改退款订单状态推送信息处理字段
	 * @return
	 */
	private String dxWxOpenId;
	/**
	 *支付订单微信openid【商家的】
	 * 定时器修改退款订单状态推送信息处理字段
	 * @return
	 */
	private String sjWxOpenId;

	// 是否通知 0:表示不通知 、1:表示通知
	private Integer isNotify;
	// 状态：0未登陆，1已登录
	private Integer wlStatus;

	/**
	 * 订单数量
	 */
	private Integer countId;
	/**
	 * 订单金额
	 */
	private BigDecimal sumAmount;


	//////////////////查询使用
	private List resourceList;//来源
	private List statusList;///支付状态
	private String orderdateBegin;//开始时间
	private String orderdateEnd;//结束时间
	private String orderdateType;//按时间查询区分类型 days  dateFormat  quarter  year
	private List cashiersIdList;//收款员id集合
	/**
	 * 排序规则
	 */
	private String groupBy;
	/**查询日期区间*/
	private Integer day;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRecordNo() {
		return recordNo;
	}

	public void setRecordNo(String recordNo) {
		this.recordNo = recordNo;
	}

	public Date getOrderdate() {
		return orderdate;
	}

	public void setOrderdate(Date orderdate) {
		this.orderdate = orderdate;
	}

	public String getResource() {
		return resource;
	}

	public void setResource(String resource) {
		this.resource = resource;
	}

	public String getBusId() {
		return busId;
	}

	public void setBusId(String busId) {
		this.busId = busId;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getBanksigns() {
		return banksigns;
	}

	public void setBanksigns(String banksigns) {
		this.banksigns = banksigns;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	/**
	 * @return the refundtype
	 */
	public String getRefundtype() {
		return refundtype;
	}

	/**
	 * @param refundtype the refundtype to set
	 */
	public void setRefundtype(String refundtype) {
		this.refundtype = refundtype;
	}

	/**
	 * @return the tradeState
	 */
	public String getTradeState() {
		return tradeState;
	}

	/**
	 * @param tradeState the tradeState to set
	 */
	public void setTradeState(String tradeState) {
		this.tradeState = tradeState;
	}

	/**
	 * @return the openid
	 */
	public String getOpenid() {
		return openid;
	}

	/**
	 * @param openid the openid to set
	 */
	public void setOpenid(String openid) {
		this.openid = openid;
	}

	/**
	 * @return the payResult
	 */
	public Integer getPayResult() {
		return payResult;
	}

	/**
	 * @param payResult the payResult to set
	 */
	public void setPayResult(Integer payResult) {
		this.payResult = payResult;
	}

	/**
	 * @return the transactionId
	 */
	public String getTransactionId() {
		return transactionId;
	}

	/**
	 * @param transactionId the transactionId to set
	 */
	public void setTransactionId(String transactionId) {
		this.transactionId = transactionId;
	}

	/**
	 * @return the timeEnd
	 */
	public String getTimeEnd() {
		return timeEnd;
	}

	/**
	 * @param timeEnd the timeEnd to set
	 */
	public void setTimeEnd(String timeEnd) {
		this.timeEnd = timeEnd;
	}

	/**
	 * @return the mchCreateIp
	 */
	public String getMchCreateIp() {
		return mchCreateIp;
	}

	/**
	 * @param mchCreateIp the mchCreateIp to set
	 */
	public void setMchCreateIp(String mchCreateIp) {
		this.mchCreateIp = mchCreateIp;
	}

	/**
	 * @return the bankType
	 */
	public String getBankType() {
		return bankType;
	}

	/**
	 * @param bankType the bankType to set
	 */
	public void setBankType(String bankType) {
		this.bankType = bankType;
	}

	/**
	 * @return the timeoutdate
	 */
	public Date getTimeoutdate() {
		return timeoutdate;
	}

	/**
	 * @param timeoutdate the timeoutdate to set
	 */
	public void setTimeoutdate(Date timeoutdate) {
		this.timeoutdate = timeoutdate;
	}

	/**
	 * @return the shopname
	 */
	public String getShopname() {
		return shopname;
	}

	/**
	 * @param shopname the shopname to set
	 */
	public void setShopname(String shopname) {
		this.shopname = shopname;
	}

	/**
	 * @return the dateFormat
	 */
	public String getDateFormat() {
		return dateFormat;
	}

	/**
	 * @param dateFormat the dateFormat to set
	 */
	public void setDateFormat(String dateFormat) {
		this.dateFormat = dateFormat;
	}

	public String getRefundId() {
		return refundId;
	}

	public void setRefundId(String refundId) {
		this.refundId = refundId;
	}

	public String getRefundChannel() {
		return refundChannel;
	}

	public void setRefundChannel(String refundChannel) {
		this.refundChannel = refundChannel;
	}

	public String getRefundTime() {
		return refundTime;
	}

	public void setRefundTime(String refundTime) {
		this.refundTime = refundTime;
	}

	public String getCodeNo() {
		return codeNo;
	}

	public void setCodeNo(String codeNo) {
		this.codeNo = codeNo;
	}

	public String getWxOpenid() {
		return wxOpenid;
	}

	public void setWxOpenid(String wxOpenid) {
		this.wxOpenid = wxOpenid;
	}

	public String getDxWxOpenId() {
		return dxWxOpenId;
	}

	public void setDxWxOpenId(String dxWxOpenId) {
		this.dxWxOpenId = dxWxOpenId;
	}

	public String getSjWxOpenId() {
		return sjWxOpenId;
	}

	public void setSjWxOpenId(String sjWxOpenId) {
		this.sjWxOpenId = sjWxOpenId;
	}

	public BigDecimal getPayRate() {
		return payRate;
	}

	public void setPayRate(BigDecimal payRate) {
		this.payRate = payRate;
	}

	public BigDecimal getSettlementAmount() {
		return settlementAmount;
	}

	public void setSettlementAmount(BigDecimal settlementAmount) {
		this.settlementAmount = settlementAmount;
	}

	public BigDecimal getServiceCharge() {
		return serviceCharge;
	}

	public void setServiceCharge(BigDecimal serviceCharge) {
		this.serviceCharge = serviceCharge;
	}

	public List getResourceList() {
		return resourceList;
	}

	public void setResourceList(List resourceList) {
		this.resourceList = resourceList;
	}

	public List getStatusList() {
		return statusList;
	}

	public void setStatusList(List statusList) {
		this.statusList = statusList;
	}

	public String getOrderdateBegin() {
		return orderdateBegin;
	}

	public void setOrderdateBegin(String orderdateBegin) {
		this.orderdateBegin = orderdateBegin;
	}

	public String getOrderdateEnd() {
		return orderdateEnd;
	}

	public void setOrderdateEnd(String orderdateEnd) {
		this.orderdateEnd = orderdateEnd;
	}

	public Integer getIsNotify() {
		return isNotify;
	}

	public void setIsNotify(Integer isNotify) {
		this.isNotify = isNotify;
	}

	public Integer getWlStatus() {
		return wlStatus;
	}

	public void setWlStatus(Integer wlStatus) {
		this.wlStatus = wlStatus;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public Integer getCountId() {
		return countId;
	}

	public void setCountId(Integer countId) {
		this.countId = countId;
	}

	public BigDecimal getSumAmount() {
		return sumAmount;
	}

	public void setSumAmount(BigDecimal sumAmount) {
		this.sumAmount = sumAmount;
	}

	public String getGroupBy() {
		return groupBy;
	}

	public void setGroupBy(String groupBy) {
		this.groupBy = groupBy;
	}

	public Integer getDay() {
		return day;
	}

	public void setDay(Integer day) {
		this.day = day;
	}

	public String getOrderdateType() {
		return orderdateType;
	}

	public void setOrderdateType(String orderdateType) {
		this.orderdateType = orderdateType;
	}

	public List getCashiersIdList() {
		return cashiersIdList;
	}

	public void setCashiersIdList(List cashiersIdList) {
		this.cashiersIdList = cashiersIdList;
	}
}
